<?php

namespace app\admin\validate;


use think\Validate;

class Aadmimember extends Validate
{

    protected $rule = [
        //'name|token'  =>  'chsAlpha|max:12',
        //'uname' =>  'alphaNum|max:12',
        'sg_password' =>  'min:6|max:16|alphaDash',
    ];

    protected $message = [
        //'name.chsAlpha'  =>  '管理员姓名只允许汉字、字母',
        //'name.max'  =>  '管理员姓名最大长度为12个字符',
        //'uname.alphaNum'  =>  '用户名只允许字母与数字',
        //'uname.max'  =>  '用户名最大长度为12个字符',
        'sg_password.min'  =>  '密码最少6个字符',
        'sg_password.max' =>  '密码最长16个字符',
        'sg_password.alphaNum' =>  '密码只允许字母、数字',
    ];


    /**
     * 验证场景
     */
   /* protected $scene = [
        'edit'  =>  ['name','age'],
    ];*/



}